/**
 * Created by yangsen on 2017/9/7.
 */
import {Component} from '@angular/core';
import {NavController,ModalController} from 'ionic-angular';
import {Activity} from "../../../common/model/model";
import {SitePage} from "../site/site";

@Component({
  selector: 'activity-add',
  templateUrl: 'add.html'
})
export class ActivityAddPage {
  activity: Activity;

  constructor(public navCtrl: NavController,public modalCtrl: ModalController) {

  }

  addDestination(){
    const destionationModal = this.modalCtrl.create(SitePage);
    destionationModal.present();
  }

  cancel() {
    this.navCtrl.pop();
  }
}
